package com.ark.cloud.java.persistence.service.impl;


import com.ark.cloud.java.persistence.entity.SatOrbit;
import com.ark.cloud.java.persistence.mapper.SatOrbitMapper;
import com.ark.cloud.java.persistence.service.SatOrbitService;
import com.ark.cloud.java.persistence.utils.UUIDUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class SatOrbitServiceImpl extends ServiceImpl<SatOrbitMapper, SatOrbit> implements SatOrbitService {

    @Resource
    private SatOrbitMapper satOrbitMapper;

    @Override
    public void saveSatOrbit(SatOrbit satOrbit) {

        satOrbit.setId(UUIDUtil.next());
        System.out.println("satOrbit:"+satOrbit);

        satOrbitMapper.insert(satOrbit);

    }
}
